<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>公司新闻</title>
    <link rel="stylesheet" href="../swiper/swiper-min.css">
    <script src="../swiper/swiper-min.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
            list-style: none;
            box-sizing: border-box;
        }

        :root {
            --fontColor: #d82019;
        }

        .clearfix::after {
            content: '';
            display: table;
            clear: both;
        }

        .wfull {
            width: 100%;

        }

        .obc {
            object-fit: cover;
        }

        .hfull {
            height: 100%;
        }
    </style>


</head>
<body>


<div th:replace="index_header.html :: index_header"  ></div>


<div th:replace="News/news_header.html :: news_header"  ></div>


<style>
    .root {
        width: 80%;
        margin: auto;
    }



    .content .text {
    }

    .content .news-img {
        margin: auto;
        display: block;
    }


    @media screen and (min-width:901px) {

        /* 电脑  */
        .content .news-img {
            width: 640px;
        }
    }

    @media screen and (max-width:900px) {
        /* 手机 */
        .content .news-img {
            width: 85%;
        }
    }
</style>
<div class="root">

    <br>

    <div class="frist" style="padding: 20px;">
        <h1>公司动态</h1>
        <h2 style=" font-weight: normal;   color: var(--fontColor);  text-transform: uppercase;        ">news</h2>
    </div>

    <hr>
    <br>
    <br>

    <h1 style="font-weight: normal;"     th:text="${neww.title}"></h1>
    <p style="color: darkgray; padding: 22px 0 ;"    th:text="${neww.time_stamp}"></p>
    <div class="content">
        <img th:src="${neww.img_url}" alt="" class="news-img">
        <div class="text"  th:utext="${neww.content}"></div>
    </div>






    <script th:inline="javascript">
        console.log([[${ news }]]);
    </script>


</div>








<div th:replace="footer.html :: tongchuang-footer"  ></div>






</body>

</html>